package cn.qingyun.gis.modules.init.utils;

import com.google.common.collect.Maps;

import java.util.Map;

public class Constants {

    public static final String RPA_RESOURCE = "rpaResource";
    public static final String RESOURCE_TYPE = "1";


    public static final String ADD_RULE = "1";   // 发布资源策略
    public static final String LOGIN_RULE = "2";  // 用户登录策略
    public static final String REMARK_RULE = "3";  // 评论资源策略
    public static final String DOWNLOAD_RULE = "4";  // 下载资源	策略
    public static final String REGISTER_RULE = "5";  // 用户注册策略

    public static final Map<String, String> MINE_TYPE = Maps.newHashMap();

    static {
        MINE_TYPE.put("bmp", "image/bmp");
        MINE_TYPE.put("gif", "image/gif");
        MINE_TYPE.put("ief", "image/ief");
        MINE_TYPE.put("jpeg", "image/jpeg");
        MINE_TYPE.put("jpg", "image/jpeg");
        MINE_TYPE.put("jpe", "image/jpeg");
        MINE_TYPE.put("png", "image/png");
        MINE_TYPE.put("tiff", "image/tiff");
        MINE_TYPE.put("tif", "image/tiff");
        MINE_TYPE.put("djvu", "image/vnd.djvu");
        MINE_TYPE.put("djv", "image/vnd.djvu");
        MINE_TYPE.put("wbmp", "image/vnd.wap.wbmp");
        MINE_TYPE.put("ras", "image/x-cmu-raster");
        MINE_TYPE.put("pnm", "image/x-portable-anymap");
        MINE_TYPE.put("pbm", "image/x-portable-bitmap");
        MINE_TYPE.put("pgm", "image/x-portable-graymap");
        MINE_TYPE.put("ppm", "image/x-portable-pixmap");
        MINE_TYPE.put("rgb", "image/x-rgb");
        MINE_TYPE.put("xbm", "image/x-xbitmap");
        MINE_TYPE.put("xpm", "image/x-xpixmap");
        MINE_TYPE.put("xwd", "image/x-xwindowdump");
    }

}
